package com.tf8.treasure.enums;

public enum ReturnType {
    SUCCESS("处理成功",200),
    NOT_LOGIN("未登录",402),
    COOKIE_EXPIRE("cookie 过期",401),



    ERROR("系统错误",500),
    PARAM_ERROR("参数不合法",501),

    DATE_FORMATE_ERROR("日期转错误",801),

    ;
    int code;
    String msg;
    ReturnType(String msg,int code){
        this.msg=msg;
        this.code=code;
    }

    public String getMsg() {
        return msg;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }
}
